#selenum 模拟注册
from selenium import webdriver

from selenium.webdriver import ActionChains

#生成浏览器对象
browser = webdriver.Chrome('C:/Users\逸可\AppData\Local\Google\Chrome\Application\chromedriver_win32\chromedriver.exe')

#打开页面
browser.get('http://127.0.0.1:8080/head/')

#元素选择
browser.find_elements_by_tag_name("input")[2].send_keys('南辞')
browser.find_elements_by_tag_name("input")[3].send_keys('123')
browser.find_elements_by_tag_name("input")[4].send_keys('123')
browser.find_elements_by_tag_name("input")[5].send_keys('1234876543')
browser.find_elements_by_tag_name("input")[6].send_keys('12345@qq.com')

#点击登录
browser.find_element_by_class_name('van-button--primary').click()